(function($)
{
	
  // Here is the entry point for your front javascript
  
})(jQuery);

$(document).ready(function(){
    $('edit_shipping_address_button').ready(function(){
        if($('#error_check').val()){
            $('.edit_shipping_address_button').trigger('click');
        }
    });
    $('.edit_shipping_address_button').toggle(
        function(){
            $('#ship_add_show').css('display', 'none');
            $('#shipping_address_edit_form').css('display', 'block');
            $(this).find('span span').html('Cancel');
        },
        function(){
            $('#ship_add_show').css('display', 'block');
            $('#shipping_address_edit_form').css('display', 'none');
            $(this).find('span span').html('New Address');
        });
    $('.add-qty').keyup(function(){
    var $th = $(this);
        $th.val( $th.val().replace(/[^0-9]/g, function(str) {alert('Your keyboard has some problem.');return '';} ) );
    });
});